<div class="flex-c hp100 border-box">
    <div class="search-box">
        <div class="condition-form">
            <el-form :inline="true" :model="formInline" ref="formInline" class="demo-form-inline">

                <el-form-item class="mr10" label="姓名" prop="YHXM">
                    <el-input type="text" v-model.trim="formInline.YHXM" placeholder="请输入" clearable
                        @keyup.enter.native="search()"></el-input>
                </el-form-item>
                <el-form-item class="mr10" label="账号" prop="YHZH">
                    <el-input type="text" v-model.trim="formInline.YHZH" placeholder="请输入" clearable
                        @keyup.enter.native="search()"></el-input>
                </el-form-item>


                <el-form-item class="mr10" label="专科" prop="ZKID">
                    <el-select clearable filterable placeholder="请选择" v-model="formInline.ZKID" class="wp100">
                        <el-option v-for="item in ZK_LIST" :key="item.ZKID" :label="item.ZKMC" :value="item.ZKID">
                        </el-option>
                    </el-select>
                </el-form-item>

                <el-form-item class="mr10">
                    <el-button :disabled="listLoading" type="primary" @click="search()" icon="el-icon-search"
                        size="mini">查询
                    </el-button>
                    <el-button type="warning" @click="resetForm('formInline')" icon="el-icon-close" size="mini">重置
                    </el-button>

                </el-form-item>

            </el-form>

        </div>
    </div>
    <el-table :data="tableData" border class="wp100" empty-text="暂无相关数据" height="250" v-loading="listLoading">
        <el-table-column v-for="item in headers" :key="item.prop" :prop="item.prop" :label="item.label">
        </el-table-column>
        <el-table-column label="操作">
            <template slot-scope="scope">
                <el-button type="text" @click="editRow(scope.row)">修改角色</el-button>
            </template>
        </el-table-column>


    </el-table>


    <el-dialog title="修改角色" :visible.sync="dialogVisible" width="600px" :close-on-click-modal="false">
        <div class="mb30">
            <el-form onsubmit="return false;" size="mini" label-width="80px" class="condition-form" :model="editInfo"
                :rules="rules" ref="buildData">
                <el-row>
                    <el-col :span="24">
                        <el-form-item label="姓名" prop="YHXM">
                            <el-input type="text" placeholder="请输入内容" v-model.trim="editInfo.YHXM" readonly />
                        </el-form-item>
                    </el-col>
                    <el-col :span="24">
                        <el-form-item label="角色" prop="ROLE_ID">
                            <el-select clearable filterable placeholder="请选择" v-model="editInfo.ROLE_ID" class="wp100"
                                multiple>
                                <el-option v-for="item in roleList" :key="item.ROLE_ID+''" :label="item.ROLE_NAME"
                                    :value="item.ROLE_ID+''">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>

                </el-row>
            </el-form>

        </div>
        <span slot="footer" class="dialog-footer">
            <el-button @click="dialogVisible = false">取 消</el-button>
            <el-button type="primary" @click="sure" :loading="saveLoading">确 定</el-button>
        </span>
    </el-dialog>


    <pagination v-show="tableData.length>0" :total="listQuery.totalNum" :page.sync="listQuery.start"
        :limit.sync="listQuery.pageSize" @pagination="getList()" />

</div>